package com.serkol.abmanager.bean;


public class GridResult extends Result {

    private long total;

    private long page;
    private long pages;


    public long getTotal() {

        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public long getPage() {
        if (this.total > 0) {
            this.page = this.total / this.page;
            if (this.page < 1) {
                this.page = 1;
            }
        }
        System.out.println("Page Error:" + page);
        return page;
    }

    public void setPage(long page) {
        this.page = page;
    }

    public long getPages() {
        return pages;
    }

    public void setPages(long pages) {
        this.pages = pages;
    }
}

